<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        a:link{color: red}/*未访问状态*/
        a:visited{color: green}/*访问过状态*/
        a:hover{color: blue}/*悬停状态*/
        a:active{color: yellow}
    </style>
</head>
<body>
<a href="http://www.qq.com">QQ官网</a>
<a href="http://www.youku.com">优酷官网</a>
<a href="http://www.58.com">58同城官网</a>
<p>p1</p>
<div>
    <p>p2</p>
    <div><p>p3</p></div>
    <div>
        <p>p4</p>
        <div><p>p5</p></div>
    </div>
</div>
</body>
</html>